package com.carbon.trade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 碳交易询报价管理 实体类
 * </p>
 *
 * @author system
 * @since 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("carbon_trade_price")
@ApiModel(value="CarbonTradePrice对象", description="碳交易询报价管理")
public class CarbonTradePrice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "交易报价ID")
    @TableField("trade_quote_id")
    private Long tradeQuoteId;

    @ApiModelProperty(value = "买方ID")
    @TableField("buyer_id")
    private Long buyerId;

    @ApiModelProperty(value = "买方交易量")
    @TableField("buyer_trade_quantity")
    private BigDecimal buyerTradeQuantity;

    @ApiModelProperty(value = "买方单价")
    @TableField("buyer_unit_price")
    private BigDecimal buyerUnitPrice;

    @ApiModelProperty(value = "买方交割方式")
    @TableField("buyer_delivery_method")
    private String buyerDeliveryMethod;

    @ApiModelProperty(value = "买方交割场所")
    @TableField("buyer_delivery_exchange")
    private String buyerDeliveryExchange;

    @ApiModelProperty(value = "买方交割时间")
    @TableField("buyer_delivery_time")
    private LocalDateTime buyerDeliveryTime;

    @ApiModelProperty(value = "卖方ID")
    @TableField("seller_id")
    private Long sellerId;

    @ApiModelProperty(value = "卖方交易量")
    @TableField("seller_trade_quantity")
    private BigDecimal sellerTradeQuantity;

    @ApiModelProperty(value = "卖方单价")
    @TableField("seller_unit_price")
    private BigDecimal sellerUnitPrice;

    @ApiModelProperty(value = "卖方交割方式")
    @TableField("seller_delivery_method")
    private String sellerDeliveryMethod;

    @ApiModelProperty(value = "卖方交割场所")
    @TableField("seller_delivery_exchange")
    private String sellerDeliveryExchange;

    @ApiModelProperty(value = "卖方交割时间")
    @TableField("seller_delivery_time")
    private LocalDateTime sellerDeliveryTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("creator_id")
    private Long creatorId;

    @ApiModelProperty(value = "更新人ID")
    @TableField("updated_id")
    private Long updatedId;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_time")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_time")
    private LocalDateTime updatedTime;

    @ApiModelProperty(value = "项目范围")
    @TableField("project_scope")
    private String projectScope;

    @ApiModelProperty(value = "项目范围编码")
    @TableField("project_scope_code")
    private String projectScopeCode;
}